package com.wyzz.hr.pojo;

import java.util.*;

import com.wyzz.hr.base.ComonBeans;
import com.wyzz.hr.pojo.base.BaseOutmatchModel;

public class OutmatchModel extends BaseOutmatchModel {

	public OutmatchModel() {
	}

	public OutmatchModel(String ommId) {
		super(ommId);
	}

	public OutmatchModel(String ommId, Iodef ommIo, String ommName,
			Date ommCreateTime, Date ommLastChangeTime,
			Integer ommStatisticPlace, String ommOutputType,
			Integer ommNoTitle, Integer ommDefault, String ommLastChangeBy,
			String ommCreateBy, Integer ommStatisticDisplayType) {
		super(ommId, ommIo, ommName, ommCreateTime, ommLastChangeTime,
				ommStatisticPlace, ommOutputType, ommNoTitle, ommDefault,
				ommLastChangeBy, ommCreateBy, ommStatisticDisplayType);
	}

	public void setOmmStatisticPlace(Integer ommStatisticPlace) {
		super.setOmmStatisticPlace(ommStatisticPlace);
		if (ommStatisticPlace != null)
			ommStatisticPlaceMean = ComonBeans.getParameterValue(
					PROP_OMM_STATISTIC_PLACE, new String[] { ommStatisticPlace
							.toString() });
		else
			ommStatisticPlaceMean = null;
	}

	public void setOmmDefault(Integer ommDefault) {
		super.setOmmDefault(ommDefault);
		if (ommDefault != null)
			ommDefaultMean = ComonBeans.getParameterValue("yesOrNoImg",
					new String[] { ommDefault.toString() });
		else
			ommDefaultMean = null;
	}

	public void setOmmStatisticDisplayType(Integer ommStatisticDisplayType) {
		super.setOmmStatisticDisplayType(ommStatisticDisplayType);
		if (ommStatisticDisplayType != null)
			ommStatisticDisplayTypeMean = ComonBeans.getParameterValue(
					PROP_OMM_STATISTIC_DISPLAY_TYPE,
					new String[] { ommStatisticDisplayType.toString() });
		else
			ommStatisticDisplayTypeMean = null;
	}

	public void setOmmNoTitle(Integer ommNoTitle) {
		super.setOmmNoTitle(ommNoTitle);
		if (ommNoTitle != null)
			ommNoTitleMean = ComonBeans.getParameterValue("noOrYes",
					new String[] { ommNoTitle.toString() });
		else
			ommNoTitleMean = null;
	}

	public void setOmmOutputType(String ommOutputType) {
		super.setOmmOutputType(ommOutputType);
		if (ommOutputType != null)
			ommOutputTypeMean = ComonBeans.getParameterValue(
					PROP_OMM_OUTPUT_TYPE, new String[] { ommOutputType
							.toString() });
		else
			ommOutputTypeMean = null;
	}

	public void setAllMaps() {
		ommStatisticPlaceMap = ComonBeans.getValuesToMap(
				PROP_OMM_STATISTIC_PLACE, new boolean[0]);
		ommStatisticDisplayTypeMap = ComonBeans.getValuesToMap(
				PROP_OMM_STATISTIC_DISPLAY_TYPE, new boolean[0]);
		ommOutputTypeMap = ComonBeans.getValuesToMap(PROP_OMM_OUTPUT_TYPE,
				new boolean[0]);
		ommNoTitleMap = ComonBeans.getValuesToMap("noOrYes", new boolean[0]);
	}

	public String getOmmStatisticPlaceMean() {
		return ommStatisticPlaceMean;
	}

	public void setOmmStatisticPlaceMean(String ommStatisticPlaceMean) {
		this.ommStatisticPlaceMean = ommStatisticPlaceMean;
	}

	public String getOmmNoTitleMean() {
		return ommNoTitleMean;
	}

	public Map getOmmStatisticPlaceMap() {
		return ommStatisticPlaceMap;
	}

	public Map getOmmOutputTypeMap() {
		return ommOutputTypeMap;
	}

	public Map getOmmNoTitleMap() {
		return ommNoTitleMap;
	}

	public List getOmList() {
		return omList;
	}

	public void setOmList(List omList) {
		this.omList = omList;
	}

	public String getOmmOutputTypeMean() {
		return ommOutputTypeMean;
	}

	public String getOmmStatisticDisplayTypeMean() {
		return ommStatisticDisplayTypeMean;
	}

	public Map getOmmStatisticDisplayTypeMap() {
		return ommStatisticDisplayTypeMap;
	}

	public String getOmmDefaultMean() {
		return ommDefaultMean;
	}

	private static final long serialVersionUID = 1L;
	private String ommDefaultMean;
	private String ommStatisticPlaceMean;
	private String ommStatisticDisplayTypeMean;
	private String ommNoTitleMean;
	private String ommOutputTypeMean;
	private Map ommStatisticPlaceMap;
	private Map ommStatisticDisplayTypeMap;
	private Map ommOutputTypeMap;
	private Map ommNoTitleMap;
	private List omList;
}
